#include "batchinsertthread.h"
#include "appmanager.h"
#include <QDebug>
BatchInsertThread::BatchInsertThread(const QVariantList &uniqIds,
                                     const QVariantList &names,
                                     const QVariantList &styleIds,
                                     const QVariantList &comments) :
  mUniqIds (uniqIds),
  mNames (names),
  mStyleIds (styleIds),
  mComments (comments)
{
}

void BatchInsertThread::run()
{
    qDebug()<<"thread started";
  appManager->dbWorker()->batchInsertRecords(mUniqIds,
                                             mNames,
                                             mStyleIds,
                                             mComments);
  qDebug()<<"thread finished";
}
